package com.haiyou.common.constant;

import lombok.Getter;

/**
 * @author zhouyibin
 * @date 2019/6/20
 * @email Gralves@163.com
 * @desc 商城相关常量
 */
public class MallConstant {

    @Getter
    public enum AdvertType{
        /*首页*/
        portal(1),
        /*商城*/
        mall(2),
        /*其他*/
        other(9);
        private Integer type;

        AdvertType(Integer type){
            this.type=type;
        }
    }

    @Getter
    public enum AdvertPosition{
        /*首页*/
        portal("1"),
        /*商城*/
        mall("2");
        private String position;

        AdvertPosition(String position){
            this.position=position;
        }
    }

    @Getter
    public enum MallGoodsImageType {

        /*slide_image 轮播图*/
        Slide_image(0);

        private Integer imageType;

        MallGoodsImageType(Integer imageType) {
            this.imageType = imageType;
        }
    }

    @Getter
    public enum MallOrderStatus {
        //0:未支付,1:已支付,2配送中，3已完成，4已取消
        UN_PAY(0),
        ALREADY_PAID(1),
        SENDING(2),
        DELIVERING(3),
        CANCELED(4);

        private Integer orderStatus;

        MallOrderStatus(Integer orderStatus) {
            this.orderStatus = orderStatus;
        }
    }
}
